package com.alexgaoyh.MutiModule.Dubbo.RWSeperate.persist.manager.sysman.sysmanUserRoleRel;

import com.alexgaoyh.MutiModule.Dubbo.RWSeperate.persist.manager.sysman.sysmanUserRoleRel.SysmanUserRoleRelExample;
import com.alexgaoyh.MutiModule.Dubbo.RWSeperate.persist.manager.sysman.sysmanUserRoleRel.SysmanUserRoleRelKey;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SysmanUserRoleRelMapper {
    int countByExample(SysmanUserRoleRelExample example);

    int deleteByExample(SysmanUserRoleRelExample example);

    int deleteByPrimaryKey(SysmanUserRoleRelKey key);

    int insert(SysmanUserRoleRelKey record);

    int insertSelective(SysmanUserRoleRelKey record);

    List<SysmanUserRoleRelKey> selectByExample(SysmanUserRoleRelExample example);

    int updateByExampleSelective(@Param("record") SysmanUserRoleRelKey record, @Param("example") SysmanUserRoleRelExample example);

    int updateByExample(@Param("record") SysmanUserRoleRelKey record, @Param("example") SysmanUserRoleRelExample example);
    
    /**
     * 根据用户userId 删除 所有角色id
     * @param sysmanUserId	用户id
     * @return
     */
    int deleteBySysmanUserId(Long sysmanUserId);
}